package com.reform.controller.common;

import com.reform.res.ResultCode;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Api(tags = "ResultCodeController")
@RestController
@RequestMapping("/result")
public class ResultCodeController {

    @ApiOperation(value = "获取全部状态码信息")
    @GetMapping("/all")
    public Map<String,String> getAllResultCode(){
        Map<String,String> map = new HashMap<>();
        map.put("200","成功");
        map.put("500","失败");
        return map;
    }
}
